#ifndef SETTINGDIALOG_H
#define SETTINGDIALOG_H

#include <QDialog>
#include <QLabel>
#include <QComboBox>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QDebug>

typedef enum {
    UI_ZH=0,
    UI_EN
}LANGUAGE;




Q_DECLARE_METATYPE(LANGUAGE)

class SettingDialog : public QDialog
{
    Q_OBJECT
public:
    explicit SettingDialog(QWidget * parent = 0);

    void loadConfig();
protected:
    void changeEvent(QEvent *event);

private slots:
    void onIndexChanged();
signals:
    void switchLanguage(LANGUAGE language);

private:
    void traslateUI();

    QLabel * language_label;
    QComboBox * language_comboBox;
    QLabel * info_label;

};

#endif // SETTINGDIALOG_H
